package com.dizner.androiduploadlibrary.javabean;

import android.support.annotation.DrawableRes;

import java.io.Serializable;

/**
 * 升级信息
 */
public  class ApplicationUpdateInfoBean implements Serializable {
    private String title;//更新弹框标题
    @DrawableRes
    private int icon;//更新弹框标题
    private String newVersionName;//新版本字符串号
    private int newVersionCode;//新版本内部编号
    private String updateInfoString;//更新说明
    private String newApkFileUrl;//新版本apk下载链接
    private String newApkFileMd5;//新版本apk文件md5值
    private boolean isMandatory;//是否强制更新

    public ApplicationUpdateInfoBean(String title, String newVersionName, int newVersionCode, String updateInfoString, String newApkFileUrl, String newApkFileMd5, boolean isMandatory) {
        this.title = title;
        this.newVersionName = newVersionName;
        this.newVersionCode = newVersionCode;
        this.updateInfoString = updateInfoString;
        this.newApkFileUrl = newApkFileUrl;
        this.newApkFileMd5 = newApkFileMd5;
        this.isMandatory = isMandatory;
    }

    public ApplicationUpdateInfoBean(String title, @DrawableRes int icon, String newVersionName, int newVersionCode, String updateInfoString, String newApkFileUrl, String newApkFileMd5, boolean isMandatory) {
        this.title = title;
        this.icon = icon;
        this.newVersionName = newVersionName;
        this.newVersionCode = newVersionCode;
        this.updateInfoString = updateInfoString;
        this.newApkFileUrl = newApkFileUrl;
        this.newApkFileMd5 = newApkFileMd5;
        this.isMandatory = isMandatory;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public @DrawableRes
    int getIcon() {
        return icon;
    }

    public void setIcon(@DrawableRes int icon) {
        this.icon = icon;
    }

    public String getNewVersionName() {
        return newVersionName;
    }

    public void setNewVersionName(String newVersionName) {
        this.newVersionName = newVersionName;
    }


    public int getNewVersionCode() {
        return newVersionCode;
    }

    public void setNewVersionCode(int newVersionCode) {
        this.newVersionCode = newVersionCode;
    }

    public boolean isMandatory() {
        return isMandatory;
    }

    public void setMandatory(boolean mandatory) {
        isMandatory = mandatory;
    }

    public String getUpdateInfoString() {
        return updateInfoString;
    }

    public void setUpdateInfoString(String updateInfoString) {
        this.updateInfoString = updateInfoString;
    }

    public String getNewApkFileUrl() {
        return newApkFileUrl;
    }

    public void setNewApkFileUrl(String newApkFileUrl) {
        this.newApkFileUrl = newApkFileUrl;
    }

    public String getNewApkFileMd5() {
        return newApkFileMd5;
    }

    public void setNewApkFileMd5(String newApkFileMd5) {
        this.newApkFileMd5 = newApkFileMd5;
    }

}